/*
 * @Author: wei_jt@ecidi.com
 * @Date: 2021-11-09 10:32:07
 * @LastEditors: chen_yt
 * @LastEditTime: 2022-06-01 10:25:20
 * @Description: 自定义指令注册
 */
import permission from './permission'
import debounce from './debounce'
import clickoutside from './clickoutside'
import longpress from './longpress'
import saas from './saas'

// 自定义指令
const directives = {
  permission,
  debounce,
  clickoutside,
  longpress,
  saas
}

export default {
  install(Vue) {
    Object.keys(directives).forEach((key) => {
      Vue.directive(key, directives[key])
    })
  },
}